package com.ssx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ssx
 * @since 2020-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cusId", type = IdType.AUTO)
    private Integer cusId;

    @TableField("cusName")
    private String cusName;

    private String address;

    private String contact;

    private String tel;

    private String email;

//    private Integer empid;
    @TableField(exist = false)
    private Employees employees;



    public Customer() {
    }

    public Customer(Integer cusid, String cusName, String address, String contact, String tel, String email, Employees employees) {
        this.cusId = cusid;
        this.cusName = cusName;
        this.address = address;
        this.contact = contact;
        this.tel = tel;
        this.email = email;
        this.employees = employees;
    }

    public Employees getEmployees() {
        return employees;
    }

    public void setEmployees(Employees employees) {
        this.employees = employees;
    }
}
